Skip to content

Assert nullable executions in parametrized tests with special approach #290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 24, 2022

Conversation

EgorkaKulikov
Copy link
Collaborator

Description

Use asserNull if expected result is null. Use standard deepEquals assertion otherwise.
Create "deepEqualsWrapper" to select between this two options

Fixes # (252)

Type of Change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Automated Testing

CastExample.simpleCast from utbot-samples

Manual Scenario

Check that different parametrized tests do not crash with NullPointerException.

@EgorkaKulikov EgorkaKulikov requested a review from Damtev June 23, 2022 16:38
@EgorkaKulikov EgorkaKulikov force-pushed the egor/deep-equals-parametrized branch from 4a0fb03 to c6e644b Compare June 23, 2022 16:48
@EgorkaKulikov EgorkaKulikov linked an issue Jun 23, 2022 that may be closed by this pull request
@EgorkaKulikov EgorkaKulikov merged commit f62acae into main Jun 24, 2022
@EgorkaKulikov EgorkaKulikov deleted the egor/deep-equals-parametrized branch June 24, 2022 08:50
@denis-fokin denis-fokin added the priority-top-focus Top priority chosen by dev team label Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-top-focus Top priority chosen by dev team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Assertions on nullable object fields in parametrized tests
3 participants